package com.pluto.cloud.example.dao;

import com.pluto.cloud.example.domain.User;
import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * Created by Administrator on 2016/8/16.
 */
@Component
public class UserDao {

    @Autowired
    private SqlSession sqlSession;

    public User findUserById(int id){
        return sqlSession.selectOne("findUserById",id);
    }
}
